package com.etime.perfectschool.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.etime.perfectschool.pojo.ActivitiesPhoto;
import com.etime.perfectschool.pojo.NewsPhoto;
import com.etime.perfectschool.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.List;

//  活动图片表
@Repository
public interface ActivitiesPhotoMapper extends BaseMapper<ActivitiesPhoto> {
    //查询某条活动的全部照片
    List<ActivitiesPhoto> getAllActivitiesPhotoByactivityId(int activityId);

    //删除活动所有图片
    int deleteActivitiesPhotoById(int activityId);

    //修改活动图片
    boolean updateActivitiesPhoto(ActivitiesPhoto activitiesPhoto);
}
